package com.test.clyq.service;

import java.util.Set;

import com.test.clyq.entity.DataPermission;
import com.test.clyq.entity.Users;

/**
 * DataPermissionService. <br>
 * 数据权限信息管理.
 * <p>
 * Copyright: Copyright (c) 2010-4-17 下午04:40:24
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * Author: liuxl@c-platform.com
 * <p>
 * Version: 1.0
 * <p>
 */
public interface DataPermissionService {

	/**
	 * 添加权限
	 * 
	 * @param permissin
	 *            权限对象
	 * @param user
	 *            用户
	 */
	public void addDataPermission(DataPermission permissin, Users user);

	public boolean delDataPermissionById(long id, Users user);

	public Set<DataPermission> getDatePermissionByUserIdAndCategoryId(Long categoryId, Long userId);

}
